<template>
	<view>
		<x-pdf ref="xPdf"></x-pdf>
		<!-- <web-view :src="src"></web-view> -->
	</view>
</template>

<script>
	import XPdf from '../uni_modules/x-pdf/components/x-pdf'
	export default {
		components:{XPdf},
		data() {
			return {
				src: '/hybrid/html/pdf/web/viewer.html?file=' + encodeURIComponent('https://oss.newpearl.com/newpearl/file/2022-04-18/80e7ec783be14b489fcfcafd9fe3b580.PDF')
			}
		},
		mounted() {
			this.$nextTick( () => {
				console.log(999)
				this.$refs.xPdf.visible = true;
			})
		}
	}
</script>

<style>

</style>
